<?php
session_start();

function admin_logueado(){
    
    
    
    if(isset($_SESSION['login_user'])){
        $usr=$_SESSION['login_user'];
        
        include_once 'conectar_bd.php';
        $base=  conectar_solo_lectura();
        
        $sql="SELECT usuario, password FROM admin_user WHERE usuario='$usr'";
        $results = $base->query($sql);
        $row=$results->fetchArray();

        $login_session=$row['usuario'];

        return isset($login_session);
    }else{
        return false;
    }
}


 
?>
